import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.util.Date;

/**
 *
 */
public class Main {
    public static void main(String[] args) throws ParseException {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Date start = simpleDateFormat.parse("2019-10-10 12:00:00");
        Date end = simpleDateFormat.parse("2019-10-10 16:32:57");
        double amount = new Calculate(start, end, false, true).calcBill();

        System.out.println(amount);

    }
}
